#define _GNU_SOURCE
#include <stdio.h>
#include <glib.h>
#include "xmw/config.h"

#ifndef XMW_DEFAULT_CONF
#define XMW_DEFAULT_CONF "../xmpw.conf"
#endif /* XMW_DEFAULT_CONF */

static GMainLoop *xmw_main_loop;

int main(int argc, char *argv[])
{
	xmw_config_t config = xmw_config_parse(XMW_DEFAULT_CONF);
	for (int i = 0; i < config.bots.size; i++)
	{
		printf("Found bot #%d:\njid: %s\ncommand:%s\n", i, config.bots.bots[i].jid, config.bots.bots[i].command);
	}

	/* Cleanup memory allocated by xmw_config_parse() */
	xmw_config_free(&config);
	return 0;
}
